package jdk5.generic;

import java.util.Comparator;
import jdk5.common.Student;

public class StudentAgeComparator<T extends Student> implements Comparator<T> {
	public int compare(T o1, T o2) {
		return -o1.getBirthday().compareTo(o2.getBirthday());
	}

	public boolean equals(Object o) {
		return o instanceof StudentAgeComparator;
	}
}